from flask import Blueprint, jsonify
from flask_jwt_extended import jwt_required
from app.utils.decorators import handle_errors

contact_bp = Blueprint('contact', __name__, url_prefix='/api/contact')


@contact_bp.route('', methods=['GET'])
@jwt_required()
@handle_errors
def get_contact_info():
    """获取联系信息"""
    # 模拟联系信息数据，实际项目中应该从数据库获取
    contact_info = {
        "phone": "400-123-4567",
        "work_time": "工作时间：9:00-18:00",
        "email": "support@example.com",
        "address": "北京市朝阳区某某街道123号"
    }
    
    return jsonify({
        'contact_info': contact_info
    })